/**
 *
 */
package com.btkjgc.service.impl;

import com.btkjgc.service.intf.BaseService_Intf;
import com.btkjgc.utils.HibernateUtil;

/**
 * @author Maple
 */
public class BaseService_Impl implements BaseService_Intf
{

	@SuppressWarnings("rawtypes")
	public Object getObjectById(Class clazz, java.io.Serializable id)
	{
		return HibernateUtil.getObjectById(clazz, id);
	}

	@Override
	public int executeUpdate(String hql, String... parameters)
	{
		return HibernateUtil.executeUpdateIfExist(hql, parameters);
	}

}
